package com.eazy.lkv2.web.controller.hotel;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.eazy.lkv2.core.db.ZQ;
import com.eazy.lkv2.web.controller.BaseController;
import com.eazy.lkv2.web.service.hotel.HotelCommentService;
import com.eazy.lkv2.web.service.hotel.HotelService;

/**
 *
 * 酒店评论
 *	2016-08-19 17:00:03 星期五
 *	@author jzx
 */
@Controller
public class HotelCommentController extends BaseController<Object, Integer> {

	@Autowired
	private HotelService hotelSerivce;
	@Autowired
	private HotelCommentService hotelCommentService;
	
	@RequestMapping(value = "hotelcomment",method = RequestMethod.GET)
	public ModelAndView comment() {
		List<Map<String, Object>> data = ZQ.commonResult("SELECT * FROM hotel h INNER JOIN hotel_comment hc ON h.`id` = hc.`h_id`", null);
		return getSuccess("hotel/comment_list","data",data);
	}
	
}
